package ClientServerFacade;


/**
 * @program: course
 * @author: lsn
 * @create: 2024-04-07 12:02
 * @description: 检查广告内容含有的字符个数
 */
public class CheckWord {
    public final int basicAmount =85;
    String advertisement;
    int amount;
    public CheckWord(String advertisement) {
        this.advertisement = advertisement;
    }
    public void setChargeAmount(){
        amount = advertisement.length() + basicAmount;
    }

    public int getAmount(){
        return amount;
    }
}

